/**
 * Created by Fisun on 2016/11/22.
 */
$(function(){
    $.ajax({
        url:URL.getsitenav,
        dataType:'json',
        success:function(data){
            var data=data.result;
            callback(data)
        }
    });
    function callback(data){
        var tem='';
        for(var i=0;i<data.length;i++){
            tem += '<a href="'+data[i].navHref+'" class="clearfix" id="'+data[i].navId+'">'+
                ' <img src="" alt="" class="m_l10"/>'+
                ' <span class="m_l10 m_r10">'+data[i].navTitle+'</span>'+
                ' </a>';
        }
        $("#nav").append(tem);

    }
});